<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<?php
/*
 * estudo de padrões de projetos com php
 * author: fabricio s costa
 * version: 1.0
 * site: http://fabriciojf.com
 */

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>Sleek by TemplateFusion.org</title>
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <link href="templates/themes/sleek/default.css" rel="stylesheet" type="text/css" media="screen" />
    </head>
    <body>
        <!-- start header -->
        <div id="header">
            <div id="logo">
                <h1>Sleek</h1>
                <p>Brought to you by <a href="http://fusiontemplates.org">Template Fusion</a></p>
            </div>
            <div id="search">
                <form method="get" action="">
                    <fieldset>
                        <input id="s" type="text" name="s" value="" />
                        <input id="x" type="submit" value="Search" />
                    </fieldset>
                </form>
            </div>
        </div>
        <!-- end header -->
        <!-- start page -->
        <div id="page">
            <!-- start content -->
            <div id="content">
                <!-- abre a sessão do loop -->
                {section name=i loop=$titulo}
                <div class="post">
                    <h1 class="title">{$titulo[i]}</h1>
                    <p class="byline"><small>Postado em {$dataCriacao[i]} <a href="http://sean-pollock.com">por {$author[i]}</a>
                    {if $logado}
                    | <a href="do.php?action=EdicaoPost&idPost={$idPost[i]}">Editar Post</a>
                    {/if}
                    </small></p>
                    <div class="entry">
                        {$conteudo[i]}
                    </div>
                    <!-- p class="meta"><a href="#" class="more">Read More</a> &nbsp;&nbsp;&nbsp; <a href="#" class="comments">Comments (1337)</a></p -->
                </div>
                {/section}
            </div>
            <!-- end content -->
            <!-- start sidebar -->
            <div id="sidebar">
                <ul>
                    <li>
                        <h2>Menu</h2>
                        <ul>
                            {section name=i loop=$menuoff}
                            <li>{$menuoff[i]}</li>
                            {/section}
                        </ul>
                    </li>
                    <li>
                        <h2>Recursos do Site</h2>
                        <ul>
                            {section name=i loop=$menuon}
                            <li>{$menuon[i]}</li>
                            {/section}
                        </ul>
                    </li>
                    <li>
                        <h2>Postagens</h2>
                        <ul>
                            {section name=i loop=$menupost}
                            <li><a href="do.php?action=LerPost&idPost={$menuidpost[i]}">{$menupost[i]}</a></li>
                            {/section}
                        </ul>
                    </li>

                </ul>
            </div>
            <!-- end sidebar -->
        </div>
        <!-- end page -->
        <div id="footer">
            {if $proximaPagina > -1}
            <a href="do.php?action=PegarPosts&nopagina={$proximaPagina}">Postagens Antigas</a>
            {/if}
            {if $paginaAnterior > 0}
            <a href="do.php?action=PegarPosts&nopagina={$paginaAnterior}">Novas Postagens</a>
            {/if}
            <p>&copy;2007 All Rights Reserved. &nbsp;&bull;&nbsp; Design by <a href="http://templatefusion.org">TemplateFusion</a> &nbsp;&bull;&nbsp; Icons by <a href="http://www.famfamfam.com/">FAMFAMFAM</a>.</p>
        </div>
    </body>
</html>